package com.fuss.activitytest.launchmode

import android.content.Context
import android.content.Intent
import com.fuss.activitytest.R
import kotlinx.android.synthetic.main.activity_single_instance.*

class SingleInstanceActivity : BaseActivity() {

    companion object {

        @JvmStatic
        fun navigateTo(context: Context) {

            val intent = Intent(context, SingleInstanceActivity::class.java)
            context.startActivity(intent)
        }
    }

    override fun getLayoutResID(): Int {

        return R.layout.activity_single_instance
    }

    override fun initListener() {

        start_standard_btn.setOnClickListener {

            StandardActivity.navigateTo(this)
        }
    }
}
